package com.cskaoyan.model.vo.wxorder.detail;

import com.cskaoyan.model.vo.wxorder.HandleOption;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: project-market
 * @description: wxOrder
 * @author: shiyue
 * @create: 2021/12/2 20:12
 **/
@Data
public class DetailUserVO {
    private String consignee;
    private String address;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;
    private String orderSn;
    private BigDecimal actualPrice;
    private String mobile;
    private String message;
    private String orderStatusText;
    private Short aftersaleStatus;
    private BigDecimal goodsPrice;
    private BigDecimal couponPrice;
    private Integer id;
    private BigDecimal freightPrice;
    private HandleOption handleOption;


    public void setOrderStatusText(short i) {
        if (i == 101) {
            orderStatusText = "未付款";
        } else if (i == 102) {
            orderStatusText = "已取消";
        } else if (i == 103) {
            orderStatusText = "已取消(系统)";
        } else if (i == 201) {
            orderStatusText = "已付款";
        } else if (i == 202) {
            orderStatusText = "申请退款中";
        } else if (i == 203) {
            orderStatusText = "已退款";
        } else if (i == 301) {
            orderStatusText = "已发货";
        } else if (i == 401) {
            orderStatusText = "已收货";
        } else if (i == 402) {
            orderStatusText = "已收货";
        }
    }


    public void setHandleOption(HandleOption op) {
        handleOption = op;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }


    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOrderStatusText() {
        return orderStatusText;
    }

    public void setOrderStatusText(String orderStatusText) {
        this.orderStatusText = orderStatusText;
    }

    public Short getAftersaleStatus() {
        return aftersaleStatus;
    }

    public void setAftersaleStatus(Short aftersaleStatus) {
        this.aftersaleStatus = aftersaleStatus;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


}
